package com.lys.emsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyansheng
 * @since 2022-04-27
 */
@Getter
@Setter
@TableName("tb_teacher")
@Data
public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账号
     */
    private String account;

    /**
     * 姓名
     */
    private String name;

    /**
     * 密码
     */
    private String password;

    /**
     * 性别
     */
    private Boolean sex;

    /**
     * 办公室
     */
    private String office;

    /**
     * 电话
     */
    private String phone;

    /**
     * 学科
     */
    private String subject;

    /**
     * 所在学院
     */
    private Integer collegeId;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 身份证
     */
    private String idCard;

    /**
     * 职务
     */
    private String duty;

    /**
     * 头像
     */
    private String avatar;

    private Integer role_id;

    @TableField(exist = false)
    private String college;

    @TableField(exist = false)
    private String school;

    @TableField(exist = false)
    private List<String> classroomList;

}
